creating a Connection

Creating a Connection

Below is an example implementation of a Connection

import communicator from './communicator';

const localXhrConnection = communicator.Connection({

  name: 'local-xhr',
  // refers to the name of an Adapter,
  // we don't have to specify this because a default Adapter was specified in the Communicator options
  adapter: 'XHR',
  url: 'http://localhost:1337',

});

export default localXhrConnection;
Rik Hoffbauer 2015
Documentation generated by JSDoc 3.4.0 on 2015-12-01T13:53:50+01:00